<template>
	<view>
		456
		<!--PC端-->
		<!--zwTabBar
		:defaultSel="tabBarIdx" 
		:fenggeyanse="fenggeyanse" 
		:list="fenggeyanse=='light' ? tabBarList : tabBarListhei" 
		@clickTab="clickTab" 
		:bigIdx="2"
		:hoverColor="fenggeyanse=='light' ? '#000000' : '#41b883'"
		:color="fenggeyanse=='light' ? '#41b883' : '#6b6b6b'"
		>
		</zwTabBar-->
	</view>
</template>

<script>
	
	import zwTabBar from "@/components/zw-tabbar/zw-tabbar";
	
	export default {
		
		name:"d-page",
		props:{
			src: {
				type: [String, Number],
				default: ''
			},
			www: {
				type: [Array,Object],
				default() {
				  return {};
				}
			},
			fenggeyanse: {
				type: [String, Number],
				default: ''
			}
		},
		data() {
			var duixin = this;
			return {
				searchValue: "",
				type:"success",
				value:0,
				jiansuokais: '',
				isDownShow: false, //false
				tabBarIdx: 0,
				tabBarList: [{
				        // "isTabBar":true,//是tabBar页面
				        // "pagePath": "/pages/home",
				        "isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/index/index",
				        "iconPath": "/static/images/shouye.png",
				        "selectedIconPath": "/static/images/shouye2.png",
				        "text": "首页"
				    }, {
				        // "pagePath": "/pages/home",
						"isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/quan/quan",
				        "iconPath": "/static/images/quan.png",
				        "selectedIconPath": "/static/images/quan2.png",
				        "text": "圈子"
				    },
				    {
				        // "pagePath": "/pages/home",
						"isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/xiaoxi/xiaoxi",
				        "iconPath": "/static/images/duanxin0.png",
				        "selectedIconPath": "/static/images/duanxin1.png",
				        "text": "消息"
				    },
				    {
				        // "pagePath": "/pages/home",
				        "pagePath": "/pages/xiaoxi/xiaoxi",
				        "iconPath": "/static/images/duanxin0.png",
				        "selectedIconPath": "/static/images/duanxin1.png",
				        "text": "消息"
				    }, {
				        // "pagePath": "/pages/home",
						"isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/wo/wo",
				        "iconPath": "/static/images/wo.png",
				        "selectedIconPath": "/static/images/wo2.png",
				        "text": "我的"
				    }
				],
				tabBarListhei: [{
				        // "isTabBar":true,//是tabBar页面
				        // "pagePath": "/pages/home",
				        "isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/index/index",
				        "iconPath": "/static/images/shouye2-anhei.png",
				        "selectedIconPath": "/static/images/shouye-anhei.png",
				        "text": "首页"
				    }, {
				        // "pagePath": "/pages/home",
						"isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/quan/quan",
				        "iconPath": "/static/images/quan2-anhei.png",
				        "selectedIconPath": "/static/images/quan-anhei.png",
				        "text": "圈子"
				    },
				    {
				        // "pagePath": "/pages/home",
						"isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/xiaoxi/xiaoxi",
				        "iconPath": "/static/images/duanxin0-anhei.png",
				        "selectedIconPath": "/static/images/duanxin1-anhei.png",
				        "text": "消息"
				    },
				    {
				        // "pagePath": "/pages/home",
						"isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/xiaoxi/xiaoxi",
				        "iconPath": "/static/images/duanxin0-anhei.png",
				        "selectedIconPath": "/static/images/duanxin1-anhei.png",
				        "text": "消息"
				    }, {
				        // "pagePath": "/pages/home",
						"isTabBar":true,//是tabBar页面
				        "pagePath": "/pages/wo/wo",
				        "iconPath": "/static/images/wo-anhei.png",
				        "selectedIconPath": "/static/images/wo-anhei.png",
				        "text": "我的"
				    }
				],
			};
		},
		components: {
			zwTabBar
		},
		watch: {
			// 监听搜索框值的变化
			
			searchValue(n, o) {
				//console.log(n);
			}
			
		},
		methods: {
			searchTap() {
				var duixin = this;
				const searchValue = duixin.searchValue; // 获取输入框的值
				
				if (searchValue) {
					uni.navigateTo({
						url: '/pages/quan/sou?k=' + searchValue // 跳转到目标页面并传递搜索关键字参数
					});
					
				}
				
			},
			searchTapjiansuo() {
				var duixin = this;
				const searchValue = duixin.searchValue; // 获取输入框的值
				
				if (searchValue) {
					uni.navigateTo({
						url: '/pages/jiansuo/index?k=' + searchValue // 跳转到目标页面并传递搜索关键字参数
					});
					
				}
				
			},
			xiaoxi() {
				uni.switchTab({
					url: '/pages/xiaoxi/xiaoxi' // 跳转到目标页面并传递搜索关键字参数
				});
			},
			choseBtn(data) {
				this.$emit('choseBtn', data)
				//console.log("erweima",data);
			},
			xiala(){
				if(this.isDownShow){
					this.isDownShow = false
				} else {
					this.isDownShow = true
				}
				
			}
		}
	}
</script>

<style lang="scss">
@import "./d-page.css";

</style>